package ai.peanut.one.api.tread.test2;

import ai.peanut.one.api.tread.testbase.CallableThreadTest;
import ai.peanut.one.api.tread.testbase.MyRunnable;
import ai.peanut.one.api.tread.testbase.MyThread;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

public class Test {
    public static void main(String[] args) throws  Exception{
        ProduAndConsume ProduAndConsume = new ProduAndConsume() ;


        A a = new A() ;
        System.out.println("we");
        ThreadTestIsAll ThreadTestIsAll = new ThreadTestIsAll(a);
        ThreadTestIsAll.start();

//        Thread.sleep(3000);

            ThreadTestIsAll.join(); //子线程运行完之后 主线程开始运行
//            ThreadTestIsAll.interrupt();
            System.out.println("w3");


//
//        ThreadCus th = new ThreadCus(ProduAndConsume);
//        th.start();
//
//        ThreadPro thget = new ThreadPro(ProduAndConsume);
//        thget.start();








    }
}
